package com.yzg.simple.netty.dubbo.consumer;

import com.yzg.simple.netty.dubbo.netty.NettyRpcClient;
import com.yzg.simple.netty.dubbo.specification.TransferMethod;

/**
 * @author misterWei
 * @create 2020年01月10号:00点29分
 * @mailbox mynameisweiyan@gmail.com
 */
public class ConsumerStart {
    public static void main(String[] args) {
        NettyRpcClient nettyRpcClient = new NettyRpcClient("127.0.0.1",7070);
        TransferMethod transferMethod = (TransferMethod) nettyRpcClient.getNames(TransferMethod.class);
        System.out.println(transferMethod.invokerMethod("xxxxxxxxxxxxxxxxxfindAll"));
        System.out.println(transferMethod.invokerMethod("xxxxxxxxxxxxxxxxxfindById"));

    }
}
